package com.nbufe.domain.vo.data;

import com.nbufe.enums.StageEnum;
import lombok.Data;

/**
 * 生产阶段Vo
 *
 * @Author luzhiheng
 * @Date 2023/12/27 16:57
 */
@Data
public class StageVo {

    /**
     * 生产阶段id
     */
    private Integer id;

    /**
     * 生产阶段名称
     */
    private String name;

    public StageVo(StageEnum stageEnum) {
        this.id = stageEnum.getValue();
        this.name = stageEnum.getCode();
    }
}
